package userBiz;

import dao.UserDao;
import pojo.User;

import java.sql.SQLException;

public class UserBiz {
    static UserDao userDao=new UserDao();
    public boolean loginCheck(String name,String pwd){
        try {
            User user=userDao.getUser("name");
            if(user!=null && user.getPwd()==pwd){
                return true;
            }
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
        return false;
    }
}
